<template>
  <p>From C1 {{count}} <button v-on:click="a1">add1</button></p>
</template>

<script type="text/ecmascript-6">
module.exports = {
  name:"ms",
  data:function (){
    return {
    };
  },
  computed:Vuex.mapState(["count"]),
  methods:{
    a1:function(){
      this.$store.commit('increment');
    }
  }
}
</script>

<style scoped>
</style>